#ifndef P1WRAP_H
#define P1WRAP_H

#include "p1wrap_global.h"

class P1WRAPSHARED_EXPORT P1wrap {
public:
    P1wrap();
    int Start();
    int Create( );
    int CreateServer(unsigned char *IP_name, int Port_Number, int listen_num);
    int Accept(int sock);
    int AcceptEx(int safeSock );
    int Connect(int sock,unsigned char *szPeer, int Port_Number);
    int Read (int sock, unsigned char *buf, int maxlength);
    int Write (int sock, unsigned char *buf, int length);
    int Close(int sock);
    int Stop();
};

#endif // P1WRAP_H
